package edu.pitt.dbmi.odie.gapp.gwt.client;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.VerticalAlignment;
import com.smartgwt.client.widgets.Img;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.layout.HLayout;

public class ODIE_BannarPanel extends HLayout {
	
	public ODIE_BannarPanel() {
		
		setWidth100();
		setHeight("84") ;
		setShowEdges(false);
		setMembersMargin(5);
		setLayoutMargin(10);
		
		// ODIE image
        final Img myImage = new Img("odie64.gif", 64, 64);
        myImage.setAppImgDir("bannar/");
        myImage.setLeft(10);
        myImage.setTop(10);
        addMember(myImage);
        
        Label bannarLabel = new Label() ;
        bannarLabel.setAlign(Alignment.LEFT);
        bannarLabel.setValign(VerticalAlignment.CENTER) ;
        bannarLabel.setBorder("1px solid #808080");
        bannarLabel.setBackgroundColor("lightblue");
        bannarLabel.setStyleName("bannarText") ;
        String contents = "<b>Ontology Driven Information Extraction</b>";
        bannarLabel.setContents(contents);
        bannarLabel.setWidth("35%") ;
        addMember(bannarLabel) ;
        
	}

}
